package cn.tedu.spring.eg1;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class Product {
    @Value("Dura-Ace")
    private String name;
    @Value("9270")
    private String nickname;

    @Override
    public String toString() {
        return "Product{" +
                "name='" + name + '\'' +
                ", nickname='" + nickname + '\'' +
                '}';
    }
}
